package com.bawei.mine.api

import com.bawei.network.HttpInterceptorType
import com.bawei.network.HttpManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object MineServiceModule {
    @Provides
    @Singleton
    fun getMineServiceApi() :MineServiceApi{
        return HttpManager.createApiServerGood(MineServiceApi::class.java,HttpInterceptorType.INTERCEPTOR)
    }
}